package com.uidt.framework.task;

import com.uidt.project.ptsj.service.IDataSyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 *
 * @author uidt
 */
@Component("syncTask")
public class SyncTask {
    @Autowired
    IDataSyncService dataSyncService;

    public void syncData() {
        System.out.println("同步场所信息");
        dataSyncService.syncPlaceInfo();
        System.out.println("同步房源信息");
        dataSyncService.syncRoomInfo();
    }

    public void syncLkrz() {
        System.out.println("入住信息同步");
        dataSyncService.syncLkrz();
    }
}
